﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DevExpress.Xpo;

namespace WROA.Models.Entitys
{
    public class ApplyCar : XPObject
    {
        private DateTime ac_time;
        [DbType("datetime")]
        public DateTime Ac_time
        {
            get { return ac_time; }
            set { ac_time = value; }
        }

        private Users user;
        [Association("ApplyCarUser")]
        public Users User
        {
            get { return user; }
            set { user = value; }
        }

        private Flow flow;
        [Association("ApplyCarFlow")]
        public Flow Flow
        {
            get { return flow; }
            set { flow = value; }
        }

        private Procedure procedure;
        [Association("ApplyCarProcedure")]
        public Procedure Procedure
        {
            get { return procedure; }
            set { procedure = value; }
        }

        private string ac_htmldata;
        [DbType("nvarchar(50)")]
        public string Ac_htmldata
        {
            get { return ac_htmldata; }
            set { ac_htmldata = value; }
        }

        private string ac_state;
        [DbType("bit")]
        public string Ac_state
        {
            get { return ac_state; }
            set { ac_state = value; }
        }

        private string ac_isagree;
        [DbType("bit")]
        public string Ac_isagree
        {
            get { return ac_isagree; }
            set { ac_isagree = value; }
        }

        [Association("CarApproveApplyCar", typeof(CarApprove))]
        public XPCollection carapproves
        {
            get
            {
                return GetCollection("carapproves");
            }
        }

        private ApplyCarData applycardata;
        public ApplyCarData Applycardata
        {
            get { return applycardata; }
            set { applycardata = value; }
        }
    }
}